package com.quick.develop.flowable.domain.job;

import com.quick.develop.flowable.domain.BpmBaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import static com.quick.develop.framework.utils.DateUtils.YYYY_MM_DD_HH_MM_SS;

/**
 * @author junyuan.liu
 * @description:
 * @date 2022/9/20 19:47
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("流程管理后台 - 流程死信节点的分页项 Response VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BpmDeadJobPageItemRspVO extends BpmBaseDO {
    private static final long serialVersionUID = 6938709206260381949L;

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "重试次数")
    private int retries;

    @ApiModelProperty(value = "异常信息")
    private String exceptionMessage;

    @ApiModelProperty(value = "")
    private String jobHandlerType;

    @ApiModelProperty(value = "")
    private String jobHandlerConfiguration;

    @ApiModelProperty(value = "")
    private String customValues;

    @ApiModelProperty(value = "")
    private String correlationId;

    @ApiModelProperty(value = "到期时间")
    @DateTimeFormat(pattern = YYYY_MM_DD_HH_MM_SS)
    private Date duedate;
    
    @ApiModelProperty(value = "执行ID")
    private String executionId;
    
    @ApiModelProperty(value = "类别")
    private String category;
    
    @ApiModelProperty(value = "类型")
    private String jobType;
    
    @ApiModelProperty(value = "节点ID")
    private String elementId;
    
    @ApiModelProperty(value = "节点名称")
    private String elementName;
    
    @ApiModelProperty(value = "")
    private String scopeId;
    
    @ApiModelProperty(value = "")
    private String subScopeId;
    
    @ApiModelProperty(value = "")
    private String scopeType;
    
    @ApiModelProperty(value = "")
    private String scopeDefinitionId;
    
    @ApiModelProperty(value = "独占的任务")
    private boolean exclusive;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = YYYY_MM_DD_HH_MM_SS)
    private Date createTime;
    
}
